import ReactDOM from 'react-dom/client';
import 'animate.css';
import './index.css';
import 'antd/dist/reset.css';
import './svg-icons';
import 'nextcae-base/src/index.css';
// Material UI uses the Roboto font by default.
// Fontsource can be configured to load specific subsets, weights and styles.
// Material UI's default typography configuration relies only on the 300, 400,
// 500, and 700 font weights.
import '@fontsource/roboto/300.css';
import '@fontsource/roboto/400.css';
import '@fontsource/roboto/500.css';
import '@fontsource/roboto/700.css';
import 'react-contexify/dist/ReactContexify.css';

import App from './App';
import { nmAppWarnLog } from './common/utils';

// 重载 console.warn 日志输出
console.warn = function (...args) {
  nmAppWarnLog(...args);
};

const root = ReactDOM.createRoot(document.getElementById('app-nextshape_root'));
root.render(<App />);
